package com.deneme.www;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean
@ViewScoped
public class KisiService {

	@EJB
	private KisiDao dao;

	private Kisi kisi = new Kisi();

	@PostConstruct
	public void init() {
		kisi.setAd("123");
		kisi.setSoyad("321");
		dao.persist(kisi);
	}

	public Kisi getKisi() {
		return kisi;
	}

	public void setKisi(Kisi kisi) {
		this.kisi = kisi;
	}

}
